#include "junix.h"

int main(int argc, char **argv)
{
	printf("uid: %d\n", getuid() );
	printf("gid: %d\n", getgid() );

	printf("euid: %d\n", geteuid() );
	printf("egid: %d\n", getegid() );

	seteuid(1000);
	setegid(1000);

	printf("euid: %d\n", geteuid() );
	printf("egid: %d\n", getegid() );

	int ret=system("touch /MMMM");
	if(ret)
		err_quit("system error");

    exit(0);
}

